package com.wheesper.www.WheesperServer.Services;
import com.wheesper.www.WheesperServer.Net.Session.IOSession;
import com.wheesper.www.WheesperServer.Utils.Logger;

import ProtocolBuffer.ProtoMessageOuterClass.ContactApplyRequest;
import ProtocolBuffer.ProtoMessageOuterClass.ContactListRequest;
import ProtocolBuffer.ProtoMessageOuterClass.ContactMailCheckRequest;
import ProtocolBuffer.ProtoMessageOuterClass.ContactRemarkModifyRequest;
import ProtocolBuffer.ProtoMessageOuterClass.ContactReplyRequest;

public class ContactsServices {
	public static void handle(IOSession session,ContactListRequest request){
		String email = request.getMailAddress();
		ContactsController.Instance().queryContacts(session, email);
	}
	
	public static void handle(IOSession session,ContactMailCheckRequest request) {
		ContactsController.Instance().contactCheckEmail(session, request.getMailAddress());
	}
	
	public static void handle(IOSession session,ContactApplyRequest request) {
		ContactsController.Instance().contactApplying(session, request);
	}
	
	public static void handle(IOSession session,ContactReplyRequest request) {
		ContactsController.Instance().contactReplying(session, request);
	}
	
	public static void handle(IOSession session,ContactRemarkModifyRequest request) {
		ContactsController.Instance().contactRemarkModifying(session, request);
	}

}
